<template>
  <div class="order-ycspace-team-view">
    <ComplexTable :columns="columns" :list="tableList">
      <div class="slot-wrapper">
        <div class="operation-btn">
          <el-button type="primary" size="small">导出excel</el-button>
        </div>
      </div>
    </ComplexTable>
  </div>
</template>

<script>
import ComplexTable from '@/components/ComplexTable'

export default {
  name: 'SpaceTeam',
  components: { ComplexTable },

  data() {
    return {
      tableList: [
        {
          author: 'Jose',
          comment_disabled: true,
          content_short: 'mock data',
          display_time: '2012-10-18 23:31:56',
          forecast: 35.18,
          id: 1,
          importance: 2
        }
      ]
    }
  },

  computed: {
    columns() {
      return [
        {
          label: '空间名',
          prop: 'id',
          search: 'input'
        },
        {
          label: '查询时间',
          prop: 'id',
          search: 'date'
        },
        {
          label: '团队长',
          prop: 'id',
          width: '80'
        },
        {
          label: '团队长手机号码',
          prop: 'author'
        },
        {
          label: '营业额',
          prop: 'display_time'
        },
        {
          label: '预计直推奖励',
          prop: 'display_time'
        },
        {
          label: '预计业绩奖励',
          prop: 'display_time'
        },
        {
          label: '预计奖励合计',
          prop: 'display_time'
        },
        {
          label: '会员数',
          prop: 'display_time'
        },
        {
          label: '实际交易会员',
          prop: 'display_time'
        },
        {
          label: '交易作品',
          prop: 'display_time'
        },
        {
          label: '抢购1件（人）',
          prop: 'display_time'
        },
        {
          label: '抢购2件（人）',
          prop: 'display_time'
        },
        {
          label: '抢购3件（人）',
          prop: 'display_time'
        },
        {
          label: '抢购4件（人）',
          prop: 'display_time'
        },
        {
          label: '抢购5件（人）',
          prop: 'display_time'
        }
      ]
    }
  },

  beforeMount() {
    // console.log('asd')
  },

  methods: {
    test(data) {
      console.log('data')

      console.log(data)
    }
  }
}
</script>

<style lang="scss">
@import './index';
</style>
